package com.ruoyi.backend.mapper;

import com.ruoyi.backend.pojo.RestorationProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RestorationProjectMapper {

    void upload(RestorationProject restorationProject);

    void delete(Integer restorationId);

    void update(RestorationProject restorationProject);

    List<RestorationProject> searchAll();

    List<RestorationProject> search(@Param("mineId") String mineId,
                                    @Param("restorationName") String restorationName);

    Integer getRestorationCount(Integer restorationId);
}
